package com.neo.impatient.C09_fileGREP.C09_01Line

import scala.io.Source




object UrlTest{


  def main(args: Array[String]): Unit = {

    val source1  = Source.fromURL("https://www.baidu.com/","UTF-8")
    for(i <- source1)
      println(i)


    val source2  = Source.fromURL("https://www.baidu.com/","UTF-8")
    val lines = source2.mkString
    println(lines)

  }
}
